package com.hskn.hss.module.rectifyrecord.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.hskn.hss.utils.StringUtils;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalTime;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author hskn
 * @since 2021-05-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class RectifyRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 纠正记录id
     */
    @TableId(value = "rectify_record_id", type = IdType.ASSIGN_UUID)
    private String rectifyRecordId;

    /**
     * 出勤明细id
     */
    private String attendId;

    private String clockId;

    /**
     * 考勤段名称
     */
    private String kaoqinduanId;
    private String kaoqinduanName;

    /**
     * 上班纠正前打卡结果
     */
    private String sbdkjgJzq;
    private LocalTime sbdksjJzq;

    /**
     * 上班纠正后打卡结果
     */
    private String sbdkjgJzh;
    private LocalTime sbdksjJzh;

    /**
     * 下班纠正前打卡结果
     */
    private String xbdkjgJzq;
    private LocalTime xbdksjJzq;

    /**
     * 下班纠正后打卡结果
     */
    private String xbdkjgJzh;
    private LocalTime xbdksjJzh;

    /**
     * 纠正人uid
     */
    private String rectifyUid;
    private String rectifyName;

    /**
     * 纠正理由
     */
    private String reason;

    /**
     * 纠正备注
     */
    private String remark;

    /**
     * 纠正时间
     */
    private Date createTime;

    private String gridName;

    private String gridId;

    private String personId;
    private String personName;

    private String planId;
    private String planName;

    private LocalDate date;

    public String getDate() {
        return StringUtils.localDateToStr(date);
    }

    private String depName;

    private String depId;
}
